package Basic;

import java.io.*;

class BRRead {
    public static void main(String args[]) throws IOException {
        char c;
        // 使用 System.in 创建 BufferedReader
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("输入字符, 按下 '空格+enter' 键退出。");
        // 读取字符
        do {
            c = (char) br.read();

            System.out.println(c);
        } while (c != '\u0020');
    }
}